<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button @click="url='http://www.zllhyy.cn'">修改</button>
        <!-- 超链接可以打开一个连接 -->
        <!-- <a v-bind:href="url" target="_blank">点我跳转</a> -->

        <!-- v-bind:也有简写形式，简写形式就是直接写 : -->
        <a :href="url" target="_blank">点我跳转</a>
    </div>

    <script src="./vue.js"></script>
    <script>
        new Vue ({
            el: '#app',
            data: {
                url: 'http://www.baidu.com'
            }
        })
    </script>
</body>
</html>